
import request from '@/plugin/axios'

// 获取用户信息列表
export function getuserMsgList (params) {
    return request({
      url: '/chat/messageinfo/userMsgList',
      method: 'get',
      params: request.adornParams(params)
    })
  }

// 获取分页列表
export function getmessageinfopage (params) {
  return request({
    url: '/chat/messageinfo/page',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取列表
export function getmessageinfolist (params) {
  return request({
    url: '/chat/messageinfo/list',
    method: 'get',
    params: request.adornParams(params)
  })
}

// 获取信息
export function getmessageinfoinfo (id) {
  return request({
    url: '/chat/messageinfo/info/' + id,
    method: 'get',
    params: request.adornParams({})
  })
}

// 添加
export function addmessageinfo (data) {
  return request({
    url: '/chat/messageinfo/save',
    method: 'post',
    data
  })
}

// 修改
export function updatemessageinfo (data) {
  return request({
    url: '/chat/messageinfo/update',
    method: 'put',
    data
  })
}

// 批量删除
export function delBatchmessageinfo (params) {
  return request({
    url: '/chat/messageinfo/delete',
    method: 'post',
    data: request.adornData(params, false)
  })
}

// 删除
export function delmessageinfo(id) {
  return request({
    url: '/chat/messageinfo/delete/' + id,
    method: 'delete',
  })
}